package com.kws.merchant.mapper;

import com.kws.merchant.domain.Merchant;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kws.system.api.domain.SysUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * (Merchant)表数据库访问层
 *
 * @author yxy
 * @since 2024-11-01 09:43:20
 */

public interface MerchantMapper extends BaseMapper<Merchant> {

    /**
     * 商家用户下拉
     * @return
     */
    @Select("select * from sys_user where create_by=${companyId}")
    List<SysUser> merchantUserList(@Param("companyId") Long companyId);
}
